﻿using Airborne.ScrumPoker.Model.Cards;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Airborne.ScrumPoker.Tests.Model.Cards
{
    [TestClass]
    public class CardFactoryTestFixture
    {
        [TestMethod]
        public void CreateSequenceTest()
        {
            ICard[] cards = CardFactory.CreateSequence();
            Assert.AreEqual(13, cards.Length);
        }


        [TestMethod]
        public void GetCardTest()
        {
            ICard[] cards = CardFactory.CreateSequence();

            ICard expected = cards[2];
            ICard actual = CardFactory.GetCard(expected.ActualValue);

            Assert.AreEqual(expected.CardDeck, actual.CardDeck);
            Assert.AreEqual(expected.CardFaceValue, actual.CardFaceValue);
            Assert.AreEqual(expected.ActualValue, actual.ActualValue);
        }
    }
}
